package restful.domain;

import java.util.Date;

import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement
public class SimplePOJO {
	private String name;
	private Integer age;
	private Long id = new Long(1230120123); 
	private Date date = new Date();
	private Boolean isDeleted = false;

	public SimplePOJO(){}
	
	public SimplePOJO(String name, int age) {
		this.name = name;
		this.age = age;
	}
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getAge() {
		return age;
	}

	public void setAge(Integer age) {
		this.age = age;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public Boolean getIsDeleted() {
		return isDeleted;
	}

	public void setIsDeleted(Boolean isDeleted) {
		this.isDeleted = isDeleted;
	}
	
	@Override
	public String toString() {
		System.out.println("name : " + this.name);
		System.out.println("age : " + this.age);
		System.out.println("date : " + this.date);
		System.out.println("id : " + this.id);
		System.out.println("isDelete : " + this.isDeleted);
		return "";
	}
}